package cn.lili.controller.feign;

import cn.lili.common.vo.ResultMessage;
import cn.lili.modules.promotion.client.BlindboxCountClient;
import cn.lili.modules.promotion.entity.dto.CallbackBlindboxDTO;
import cn.lili.modules.promotion.service.BlindboxCountService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class BlindboxCountFeignController implements BlindboxCountClient {

    private final BlindboxCountService blindboxCountService;

    /**
     * 下单后更新盲盒统计
     * */
    @Override
    public Boolean callbackBlindbox(CallbackBlindboxDTO callbackBlindboxDTO) {
        return blindboxCountService.callbackBlindbox(callbackBlindboxDTO);
    }
}
